/**
 * 财务管理模块 http 请求
 */
import http from '@/utils/request'

export const gainBillNo = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/gainBillNo', data)
}

// 获取财务开票人
export const queryEmpIdByCompanyIdAndPostCode = (data) => {
  return http.get('/api/erp/files/company/erpCompanyFiles/queryEmpIdByCompanyIdAndPostCode', data)
}

export const add = (data) => {
  return http.post('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/add', data)
}
export const edit = (data) => {
  return http.put('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/edit', data)
}

export const info = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/queryById', data)
}

export const queryInvoiceExpensesDetailByBillId = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceExpensesDetail/allList', data)
}
export const erpFinanceInvoiceTaxRateRecordList = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceTaxRateRecord/allList', data)
}
export const queryContractRateFinal = (data) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceTaxRateRecord/queryContractRateList', data)
}
export const queryContractPaymentNodeFinal = (data) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/allList', data)
}
